var factorial = function (n) {
    return (n > 1) ? (n * factorial(n-1)) : 1;
};

print(factorial(arguments[0]));
